// To parse this JSON data, do
//
//     final loginRequestModel = loginRequestModelFromJson(jsonString);

import 'dart:convert';

LoginRequestModel loginRequestModelFromJson(String str) => LoginRequestModel.fromMap(json.decode(str));

String loginRequestModelToJson(LoginRequestModel data) => json.encode(data.toMap());

class LoginRequestModel {
  String phone;
  String code;
  int type;

  LoginRequestModel({
    required this.phone,
    required this.code,
    required this.type,
  });

  factory LoginRequestModel.fromMap(Map<String, dynamic> json) => LoginRequestModel(
    phone: json["phone"],
    code: json["code"],
    type: json["type"],
  );

  Map<String, dynamic> toMap() => {
    "phone": phone,
    "code": code,
    "type": type,
  };
}
